function initSubs(myArr) {
    myArr.push('Vocloid,HollowPoint');
    myArr.push('JPOP,Dubstep');
    myArr.push('Jigoku Shoujo,Clannad');
    myArr.push('Visual Novel,FPS');
    myArr.push('Sublime Text,Emacs');
    myArr.push('Backtrack,Windows 8');
    myArr.push('Good,Bad');
    myArr.push('Boring,Interesting');
    myArr.push('Mecha,Romance');
    myArr.push('Bump of Chicken,Opeth');
    myArr.push('Girls Generation,Excision');
    myArr.push('Drunk,Sober');
    myArr.push('Boston,Houston');
    myArr.push('Audio,Video');
    myArr.push('Miku,JKENZO');
    myArr.push('Python,C++');
    myArr.push('DoTA 2,Dystopia');
    myArr.push('Atlas,P-Body');
    myArr.push('Gordon,Breene');
    myArr.push('Good,Evil');
    myArr.push('Right,Wrong');
    myArr.push('Indie,Mainstream');
    myArr.push('AMD,Intel');
    myArr.push('Nvidia,ATi');
    myArr.push('Goth Girls,Asian Girls');
    myArr.push('Asurans,Humans');
    myArr.push('Blue,Red');
    myArr.push('Fire,Air');
    myArr.push('Green Monster Energy,Vodka and Redbull');
    myArr.push('Vodka,Whisky');
    myArr.push('dwm,Gnome 2');
    return myArr;
}
subArray = new Array();
subArray = initSubs(subArray);
function pickSubtitle() {
    var randomnumber=Math.floor((Math.random()*subArray.length));
    var temp = subArray[randomnumber];
    var n = temp.split(',');
    return 'From ' + n[0] + ' to ' + n[1];
}
function get_nth_suffix(date) {
    switch (date) {
    case 1:
    case 21:
    case 31:
        return 'st';
    case 2:
    case 22:
        return 'nd';
    case 3:
    case 23:
        return 'rd';
    default:
        return 'th';
    }
}
$(document).ready(function () {
    $("#Attribution1 .widget-content").text("Powered by Puppies & Kittens.");
    //$('.titlewrapper').remove();
    // Header Stuff
    $('.titlewrapper').children().html('Opposing Opinions_');
    //$('.titlewrapper').children().attr('style','text-align:right; vertical-align:middle; display:table-cell; font-size:60px; width:938px; height:210px; font-family:Raleway; font-weight:100; color:#DB6D20; background-color:#333333;');
    // Un comment prev line for centered title
    $('.titlewrapper').children().attr('style','text-align:right; font-size:60px; width:938px; height:210px; font-family:Raleway; font-weight:100; color:#DB6D20; background-color:#494949;');
    $('.titlewrapper').css('padding','1px');
    $('.titlewrapper').css('background','rgba(218,108,37,1);');
    $('.titlewrapper').css('background',' -moz-linear-gradient(top, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 90%)');
    $('.titlewrapper').css('background','-webkit-gradient(left top, left bottom, color-stop(0%, rgba(218,108,37,1)), color-stop(90%, rgba(255,175,75,0)))');
    $('.titlewrapper').css('background','-webkit-linear-gradient(top, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 90%)');
    $('.titlewrapper').css('background','-o-linear-gradient(top, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 100%)');
    $('.titlewrapper').css('background','-ms-linear-gradient(top, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 100%)');
    $('.titlewrapper').css('background','linear-gradient(to bottom, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 100%)');
    $('.header-inner').append('<marquee id="mySubTitles" behavior="alternate">'+pickSubtitle()+'</marquee>');
    $('#mySubTitles').attr('style','font-size:25px; font-family:Waiting for the Sunrise, cursive; font-weight:100; color:#DB6D20;');
    //Redoing tabs font
    $('a[href="http://opposing-opinions.blogspot.com/p/our-favorites.html"]').attr('style','font-size: large; font-family:Raleway; font-weight:300;');
    $('a[href="http://opposing-opinions.blogspot.com/p/about-us.html"]').attr('style','font-size: large; font-family:Raleway; font-weight:300;');
    $('a[href="http://opposing-opinions.blogspot.com/p/rigs.html"]').attr('style','font-size: large; font-family:Raleway; font-weight:300;');
    $('a[href="http://opposing-opinions.blogspot.com/"]').attr('style','font-size: large; font-family:Raleway; font-weight:300;');
    //redoing tabs hover
    $('.tabs-inner .widget li.selected a').css('background-color', '#DB6D20');
    $('.tabs-inner .widget li.hover:a').css('background-color', '#DB6D20');
    //get current date   
    var tempDate = new Date();
    var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];
    var theDate = monthNames[tempDate.getMonth()] + ' ' +tempDate.getDate() + get_nth_suffix(tempDate.getDate())  +  ', ' + tempDate.getFullYear();
    //$('.widget-content').children().children().attr('placeholder',theDate);
    //uncomment previos to have search placeholder be date
    //changing fonts for titles and such
    $('.post-title').css('font-family', 'raleway');
    $('.post-title').css('font-size', '300%');
    $('.post-title').css('font-weight', '100');
    //RSS stuff
    $('#crosscol-overflow').css('position', 'absolute').css('top', '-23px').css('left', '670px');
    $('.footer-inner').css('padding', '0px 15px');
    $('#PageList1').append("<div id=rssDiv></div>")
    $("#rssDiv").append('<a href="http://opposing-opinions.blogspot.com/feeds/posts/default"></a>');
    $("#rssDiv").css('position', 'absolute').css('top', '52px').css('left', '878px').css('height', '32px').css('width', '32px').css('overflow', 'hidden').css('background-image', 'url("http://i.imgur.com/YVGtOre.png")').css('background-position', 'center bottom').css('background-repeat', 'no-repeat').css('cursor', 'pointer').css('z-index', '1');
    $(".blog-feeds").remove();
    $('.main-inner').css('padding-bottom', '0px');
    // RSS Hover Code
    $("#rssDiv").hover(function() {
	$("#rssDiv").css('background-position', 'center top');
	console.log("Entered");
    }, function() {
	$("#rssDiv").css('background-position', 'center bottom');
    });
    // RSS Click Code
    $("#rssDiv").click(function() {
	window.location=$(this).find("a").attr("href"); 
	return false;
    });
    // Video should be 880 by 494
    $('.content-outer').css('-webkit-box-shadow','3px 6px 47px 0px rgba(0,0,0,1)')
    $('.content-outer').css('-moz-box-shadow','3px 6px 47px 0px rgba(0,0,0,1)')
    $('.content-outer').css('box-shadow','3px 6px 47px 0px rgba(0,0,0,1)')
    //box shadow for video
    $('embed[type="application/x-shockwave-flash"]').css('-webkit-box-shadow','4px 4px 24px 0px rgba(0,0,0,1)');
    $('embed[type="application/x-shockwave-flash"]').css('-moz-box-shadow','4px 4px 24px 0px rgba(0,0,0,1)');
    $('embed[type="application/x-shockwave-flash"]').css('box-shadow','4px 4px 24px 0px rgba(0,0,0,1)');
    //For image title posts (have to add class manually
    $('.headerImages').css('background','rgba(218,108,37,1)');
    $('.headerImages').css('background',' -moz-linear-gradient(top, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 100%)');
    $('.headerImages').css('background','-webkit-gradient(left top, left bottom, color-stop(0%, rgba(218,108,37,1)), color-stop(100%, rgba(255,175,75,0)))');
    $('.headerImages').css('background','-webkit-linear-gradient(top, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 100%)');
    $('.headerImages').css('background','-o-linear-gradient(top, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 100%)');
    $('.headerImages').css('background','-ms-linear-gradient(top, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 100%)');
    $('.headerImages').css('background','linear-gradient(to bottom, rgba(218,108,37,1) 0%, rgba(255,175,75,0) 100%)');
    $('.headerImages').css('padding','1px');
    $('.headerImages').css('filter','progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#da6c25\', endColorstr=\'#ffaf4b\', GradientType=0 )');
    $('.headerImages').css('-webkit-box-shadow','4px 4px 24px 0px rgba(0,0,0,1)');
    $('.headerImages').css('-moz-box-shadow','4px 4px 24px 0px rgba(0,0,0,1)');
    $('.headerImages').css('box-shadow','4px 4px 24px 0px rgba(0,0,0,1)');
    //stuff for syntax highlighting code
    $('.headerCode').css('-webkit-box-shadow','4px 4px 24px 0px rgba(0,0,0,1)');
    $('.headerCode').css('-moz-box-shadow','4px 4px 24px 0px rgba(0,0,0,1)');
    $('.headerCode').css('box-shadow','4px 4px 24px 0px rgba(0,0,0,1)');
    $('.headerCode').css('border','1px dashed #DB6D20');
});

    
    
